﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Einstein.Data;

namespace Einstein.Group.DAL
{
    public  class SystemLogDAL
    {
        public IList<SystemLog> SelectAll()
        {
            using (EinsteinEntities entities = new EinsteinEntities())
            {
                return entities.SystemLog.ToList<SystemLog>();
            }
        }

        public bool Add(SystemLog info)
        {
            using (EinsteinEntities entities = new EinsteinEntities())
            {
                entities.SystemLog.AddObject(info);
                return entities.SaveChanges() > 0;
            }
        }
    }
}
